<?php
if (isset($_POST['createAccount'])) {
    $AccName = $_POST['accName'];
    $AccPass = $_POST['password'];
    putAccount($AccName, $AccPass, $_SESSION['userName'], $_SESSION['userPassHash'], null);
}
?>
<h3>Add User</h3>
<form action="" method ="Post" class="form-horizontal">
    <div class="control-group">
        <label class="control-label" for="accName">Account Name</label>
        <div class="controls">
            <input id="accName" type="text" name="accName" placeholder="ShahriarDoza" required="required" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="password">Password</label>
        <div class="controls">
            <input id="password" name="password" type="password"  required="required" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="password">Confirm Password</label>
        <div class="controls">
            <input id="confirm-password" type="password"  required="required" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="confirm"></label>
        <div class="controls">
            <input class="btn btn-primary" type="submit" name="createAccount" value="Send" />
            <input class="btn" type="reset" value="Reset" />
        </div>
    </div>
</form>